import {
  Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy, Input, EventEmitter,
  Output
} from '@angular/core';
import {ActivatedRoute, Params, Router} from "@angular/router";
import {TrainService} from "@train/train.service";

@Component({
  selector: 'lesson-item',
  templateUrl: './lesson-item.component.html',
  styleUrls: ['./lesson-item.component.scss'],
  encapsulation: ViewEncapsulation.None
})
export class LessonItemComponent implements OnInit {
  @Input() lesson;
  @Input() index;
  @Output() clicked = new EventEmitter();
  public  stateArr = ['未点评', '已点评'];
  goToTarget() {
    this.clicked.emit();
  }

  ngOnInit() {
  }
}
